#header {
    width: 960px;
    height: 90px;
    position: relative;
    margin: 0 auto;
}
#menu {
    width: 960px;
    position: relative;
    margin: 0 auto;
}

.page-main  #main-wrapper {
    min-height: 0;
    margin-bottom:20px;
}


.logo {
    width:20%;
}

.logo img{
    width:300px;
    height:53px;
}

.region-header {
    float:left;
    margin-top:26px;
    width:60%;
}

#block-menu-menu-top-menu ul{
    list-style: none;
    font-size: 14px;
    margin: 0 auto;
    padding: 0;
}
#block-menu-menu-top-menu ul li{
    float: left; /* выстраиваем блочные элементы в ряд */
    margin: 0 0 0 19px;
    overflow: hidden;
    text-align: center;
    padding-top: 3px;
}

#block-menu-menu-top-menu{
    padding-top:3px;
    float:right;
}

#block-views-frontpage-slideshow-block{
    width:auto;
    margin-left:auto;
    margin-right:auto;
}

#views_slideshow_cycle_teaser_section_frontpage_slideshow-block{
    margin: auto;
}

/* ----- head-img ----- */
.head-img { width: 100%; height: 540px; position: relative; }

.compact-form-label{
    padding: 5px 0px 0px 5px;
}



/* common theme ovverides */
#page-wrapper, #footer-wrapper {
    background: none;
}

#main{
    margin-top: 0;
}

/* slides */
.gallery-frame ul {
    text-align:center;
}
.gallery-frame ul li{
    width:630px;
    margin: 0 auto;
}
.galleryformatter-greenarrows .gallery-thumbs li a {
    padding-top:6px!important;
}
.galleryformatter-greenarrows .gallery-thumbs .wrapper {
    border-bottom: none;
}
.advert-field-separator-wrapper{
    width:660px;
    float:left;
    clear: both;

}
.advert-field-separator{
    border-bottom: 1px solid #CCC;
    margin: 10px auto 10px 0;
    width:95%;
}
/* slides */



#block-block-1 {
    width: 900px;
    margin: auto;
    top: -580px;
    margin-bottom: -230px !important;
    position: relative;
    z-index: 1000;
}
#block-block-1 .content {
    margin: 55px auto 41px;
    width: 682px;
    height: 120px;
    padding: 10px 20px 0;
    font-size: 16px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.5);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    behavior: url(styles/pie.htc);
    filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50);
    position: relative;
    line-height: 1;
}
#block-block-5 .content a{
    color:#000000;
    text-decoration: none;
}

#block-block-5 .content h2,
#block-block-1 .content h2 {
    font-size: 54px;
    margin: 0 0 3px;
    line-height: 1.2;
}

#block-block-3{
    width: 500px;
    height: 170px;
    top: -368px;
    margin: 0 auto -285px auto;
    background-color: #000;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50);
    background-color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1000;
    padding:10px;
}

#block-block-3 form{
    background: none;
    border-radius: 0;
    height: auto;
    padding: 0;
    width: auto;
    text-align: center;
}

.send_mess input{
    border: 1px solid #b1b9c3;
    margin: 0 0 9px;
    padding: 7px 3px;
    position: relative;
    width: 215px;
    behavior: url(styles/pie.htc);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    font-size: 16px;
}

.send_mess textarea{
    border: 1px solid #b1b9c3;
    margin: 0 0 11px;
    padding: 7px 3px;
    position: relative;
    width: 450px;
    behavior: url(styles/pie.htc);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    resize: none;
    height: 58px;
    color: #5D5D5D;
    font-size: 16px;
}

.send_mess input[type=submit]{
    background: url("../images/main_find.png") no-repeat scroll 0 0 transparent;
    width: 100px;
    height: 42px;
    top: 0;
    font-size: 16px;
    font-family: Georgia;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-block;
    left: 4px;
    padding: 0 0 3px;
    position: relative;
    vertical-align: top;
    zoom: 1;
}

.send_mess input[type=submit]:hover {
    background-position: 0 -50px;
}
.compact-form-label{
    padding: 5px 0px 0px 5px;
}

#block-block-4{
    width: 800px;
    height: 109px;
    top: -75px;
    margin: 5px auto 11px;
    position: relative;
    z-index: 1000;
    padding:10px;
}

#block-block-4 .house{
    float: left;
    width: 170px;
    position: relative;
    margin: 0 30px 27px 0;
}


#block-block-5{
    width: 100%;
    height:109px;
    margin: 5px 0 11px 0;
    position: relative;
    padding: 10px 0 10px 0;
    opacity: 0.6;
    background-color: #efefef;
    text-align: center;
    font-size: 26px;
    line-height: 1.2;
    overflow-x: hidden;
}

#block-block-6{
    width: 100%;
}

#block-block-6 .item:hover .img {
    background-position: 0 0;
}

#block-block-6 .item .img {
    width:250px;
    height: 157px;
}

#block-block-6 .item .img {
    display: block;
    width: 290px;
    height: 207px;
    background: url("../images/bg-item.png") 0 -227px no-repeat;
    padding: 14px 0 0 15px;
}

#block-block-6 .item .name {
    font-size: 18px;
    color: #000;
    font-weight: bold;
    display: block;
    text-align: center;
    text-decoration: none;
    margin: 0 0 7px;
}

#block-block-6 .item:hover .name {
    text-decoration: underline; color: #66b1fb;
}

#block-block-6 .last{
    margin-right: 0!important;
}

#block-block-6 .item {
    float: left;
    width: 291px;
    position: relative;
    margin: 0 30px 27px 0;
    text-decoration: none;
}

#block-block-6 .item .adv {
    zoom: 1;
    left: 85px;
    top: 167px;
    position: absolute;
    font-size: 13px;
    color: #fff;
    text-align: center;
    width: 136px;
    height: 24px;
    background-color: #278bfe;
    padding: 7px 0 0;
    behavior: url(styles/pie.htc);
    -webkit-border-radius: 13px;
    -moz-border-radius: 13px;
    border-radius: 13px;
}

#content .section{
    padding: 0!important;
}

#webform-component-phone,
#webform-component-email{
    width:49.6%;
    display: inline-block;
}

.page-main #edit-submit{
    margin-right:35%;
    margin-left:35%;
}
.page-main .webform-component{
    opacity: 1;
}

.compact-form-label{
    padding: 4px 0 0 6px !important;
    cursor: text !important;
    color: #A0A0A0;

}

/*
*  Sub menu
*/

.submenu {
    margin: 0 auto;
    //padding: 30px 0 0;
    top:-20px;
    position: relative;
    text-align: center;
    width: 960px;
    z-index: 100;
}
.submenu a{
    color: #848383;
    display: inline-block;
    zoom: 1;
    margin: 0 15px;
    position: relative;
    text-decoration: none;
    vertical-align: top;
    width: 205px;
}
.submenu a:hover{
    text-decoration: none;
    color: #848383;
}
.submenu a span{
    position: absolute;
    background: url(../images/icons.png) no-repeat;
    display: block;
    width: 60px;
    height: 60px;
    left: 75px;
    top: -63px;
}
.submenu a:active{
    color: #3e4e5b;
    text-decoration: none;
}
.submenu .icon_1:active span{
    background-position: -19px -149px;
}

.submenu .icon_1:hover span{
    background-position: -19px -80px;
}
.submenu .icon_1 span{
    background-position: -19px -13px;
}
.submenu .active.icon_2:active span{
    background-position: -123px -149px;
}
.submenu .icon_2:hover span{
    background-position: -123px -79px;
}
.submenu .icon_2 span{
    background-position: -123px -12px;
}
.submenu .icon_3:active span{
    background-position: -223px -154px;
}
.submenu .icon_3:hover span{
    background-position: -223px -84px;
}
.submenu .icon_3 span{
    background-position: -223px -12px;
}

.div.jGrowl div.jGrowl-notification{
    width: 350px!important;
}

/* Banners */
#branding .region-branding #block-custom-addhands-top-banner img{
    display: block;
    margin: auto;
}

.node-type-page h1#page-title{
    display: none;
}

/* DHTML menu */
li.dhtml-menu-open > a {
    font-style: normal!important;
}

/* Fonts */
body.not-front,
body.not-front .leaf a {
    font-family:  Georgia, "Times New Roman", Times, serif;!important;
}

body.not-front .menu a {
    font-size: 14px;
}

body.not-front #footer .leaf a {
    font-family:  "Georgia", "tahoma"!important;
}

a.login-button {
    height: 30px;
    line-height: 26px;
    right: 0px;
    width: 76px;
    text-decoration: none;
    text-align: center;
    line-height: 26px;
    display: block;
    color: #fff!important;
    margin-top:-4px;
    background: url("../images/enter.png") no-repeat 0 1px;
    cursor: pointer !important;
    padding-top: 1px !important;
}

a.login-button:hover {
    background-position: 1px bottom;
    color: #f1f8ff!important;
    text-decoration: none;
    padding-top: 3px;
}

/* user dropdown menu */
#block-custom-addhands-user-header-dropdown-menu{
    float:right;
    margin-top:5px;
    margin-right:0px;
}
#block-custom-addhands-user-header-dropdown-menu  .header-dropdown ul li{
    padding-bottom: 3px;
}
#block-custom-addhands-user-header-dropdown-menu  .header-dropdown ul li a{
    font-family: Georgia, "Times New Roman", Times, serif;
}
#block-custom-addhands-user-header-dropdown-menu  .header-dropdown{
    z-index: 1000!important;
    position: relative;
    background-color: #ffffff;
    behavior: url(styles/pie.htc);
    -moz-box-shadow: 0 0 5px rgba(0,0,0,0.5);
    -webkit-box-shadow:  0 0 5px rgba(0,0,0,0.5);
    filter: progid:DXImageTransform.Microsoft.dropshadow(offX=0, offY=0, color=rgba(0,0,0,0.5));
    filter: progid:DXImageTransform.Microsoft.shadow(direction=120, color=#000000, strength=5);
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid #D0D0D0;
    width:100%;
    padding:5px;
}

#block-custom-addhands-user-header-dropdown-menu .content{
    padding-top: 1px;
}

span.arrow-user-menu{
    background: url('../images/arrow_down.png') no-repeat;
    display: block;
    float: right;
    width: 5px;
    margin: 10px 0 0 7px;

}
#dropdown_link .hello-msg{
    float: right;
    text-align: right;
    text-decoration: underline !important;
    font-size: 14px;
    font-family: Georgia, "Times New Roman", Times, serif;
}

.dropdown-link-div{
    overflow: hidden;
}
#block-custom-addhands-user-header-dropdown-menu  .header-dropdown::before{
    content: '';
    display: inline-block;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-bottom-color: #D0D0D0;
    top: -9px;
    right: 15px;
    position: absolute;
}

/* end user dropdown menu */

/* user header menu */
#block-custom-addhands-user-header-menu {
    margin-bottom: 20px;
    overflow: hidden;
}

.header-user-menu ul li {
    display: block;
    float:left;
    margin-right: 25px;
}

.header-user-menu li a {
    font-size: 18px;
    text-decoration: underline;
}

.header-user-menu li a.active {
    text-decoration: none;
}

/* end user header menu */

/* my-advert-view */
.my-advert-view .advert-row {
    float: left;
    width:100%;
    margin-bottom: 10px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
}
.my-advert-view .view-column{
    float:left;
}
.my-advert-view .col-1{
    width:24%;
    margin-right: 1%;
}
.my-advert-view .col-2{
    width:49%;
    margin-right: 1%;
}
.my-advert-view .col-3{
    width:24%;
    margin-right: 1%;
}

.my-advert-view .advert-title h2{
    margin-top:0;
    margin-bottom: 5px;
}
.my-advert-view .advert-body{
    margin-bottom: 5px;
    height: 80px;
}
.my-advert-view .advert-links a{
    margin-right: 15px;
}
.my-advert-view .advert-price{
    float: right;
}
/* end my-advert-view */

/* Advert slider */

span.arrow.back{
    background: url("../images/categories/sprite.png") no-repeat scroll !important;
    background-position:  -25px 0  !important;
    display: block  !important;
    height: 65px  !important;
    position: absolute  !important;
    width: 17px  !important;
    cursor: pointer  !important;
    bottom: 13px !important;
    left: -26px !important;

}
a.arrow{
    width: 0px !important;
    height: 0px !important;
}

span.arrow.forward{
    background: url("../images/categories/sprite.png") no-repeat scroll -45px 0px !important;
    display: block !important;
    height: 65px !important;
    position: absolute !important;
    width: 17px !important;
    cursor: pointer !important;
    bottom: 13px !important;

}

.gallery-thumbs{
    width: 646px !important;
    padding: 0 0 !important;
}
.gallery-slides{
    width: 621px !important;
    background-color: #e5e4e2 !important;
}
.galleryformatter-greenarrows .gallery-thumbs a.arrow, .galleryformatter-greenarrows .gallery-thumbs .wrapper, .galleryformatter-greenarrows .gallery-thumbs li.active a, .galleryformatter-greenarrows .gallery-thumbs li a:hover, .galleryformatter-greenarrows .view-full
{
    background: none !important;
}
.gallery-thumbs .wrapper{
    width:624px !important;

}
.slide-button{
    display: none !important;
}
.galleryformatter .gallery-slides, .galleryformatter .gallery-thumbs{
    margin: auto 0 !important;
}
/* end advert slider */

/* nearest objects view block*/
.view-nearest-object .views-field-title ul {
    list-style: none;
    padding-left: 0;
}

.view-nearest-object .views-field-title ul li{
    display: inline;
    padding:0!important;
}

/* requestadvert-info form */
#custom-addhands-request-advert-info-form>div {
    margin-top: 20px;
    //border: 1px solid lightgray;
}
#custom-addhands-request-advert-info-form label {
    float: left;
    width: 25%;
}

/* advert node */
.field-name-field-zone-details .field-item,
.field-name-field-details .field-item,
.field-name-field-comfort .field-item {
    float:left;
    width: 30%;
    margin-right: 3%;
}

.field-name-field-zone-details .field-item .active,
.field-name-field-details .field-item .active,
.field-name-field-comfort .field-item .active{
    background: url("../images/active_16x16.png") no-repeat scroll 0 0 transparent;
    padding-left:20px;
}
.field-name-field-zone-details .field-item .inactive,
.field-name-field-details .field-item .inactive,
.field-name-field-comfort .field-item .inactive{
    background: url("../images/inactive_16x16.png") no-repeat scroll 0 0 transparent;
    padding-left:20px;
}

.field-name-field-zone-details,
.field-name-field-details,
.field-name-field-comfort{
    overflow: hidden;
}

.group-short-info .field {
    width: 33%;
    float: left;
}
/* end advert node */

/* advert search. Map, filters and results */
.ymaps-balloon__content {
    padding: 1px!important;
    text-align: justify;
    background: #fff;
    font: 13px/20px Arial,sans-serif;
}

.ymaps-balloon__close {
    top: -7px!important;
    right: -7px!important;
    background: white;
    border-radius: 18px;
    -moz-border-radius: 18px;
    -webkit-border-radius: 18px;
}
.ymaps-balloon__layout {
    overflow: visible!important;
}
.ymaps-balloon__close+.ymaps-balloon__content {
    margin-right: 0!important;
}

.ymaps-balloon__close-button {
    width: 20px!important;
    height: 20px!important;
    margin-right: 0!important;
}
.ymaps-balloon-content__body {
    text-align: center;
    float: left;
    width: 100%;
    max-width: 100px;
}
.ymaps-balloon-content__header {
    margin: 0!important;
}

#views-exposed-form-advert-search-page-1 #edit-field-price-value-wrapper {
    width: 100%;
}

#views-exposed-form-advert-search-page-1 .form-type-textfield label{
    float: left;
}
#views-exposed-form-advert-search-page-1 .form-type-textfield {
    float: left;
}
#views-exposed-form-advert-search-page-1 .bef-slider {
    clear: both;
    float: left;
    width: 100%;
}

#views-exposed-form-advert-search-page-1 #edit-field-price-value-wrapper label{
    float: left;
    margin-right:5px;
    margin-left:3px;
    font-size: 1em;
    margin-top:3px;
}

.form-type-bef-link.selected {
    font-weight: bold;
}
/* end advert search */